/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.CTPhieuDichVu_DAO;
import DTO.CTPhieuDichVu_DTO;

/**
 *
 * @author PEKEM
 */
public class CTPhieuDichVu_BUS {

    public static int Insert(CTPhieuDichVu_DTO ct) throws Exception {
        return CTPhieuDichVu_DAO.Insert(ct);
    }

    public static int Delete(String maCTPhieuDichVu) throws Exception {
        return CTPhieuDichVu_DAO.Delete(maCTPhieuDichVu);
    }

    public static int Update(CTPhieuDichVu_DTO ct) throws Exception {
        return CTPhieuDichVu_DAO.Update(ct);
    }

    public static String taoMaTuDong(String maGoc, int batDau) throws Exception {
        return CTPhieuDichVu_DAO.taoMaTuDong(maGoc, batDau);
    }
    public static String layMaCuoiCung() throws Exception {
        return CTPhieuDichVu_DAO.layMaCuoiCung();
    }
}
